package com.example.domain.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Pattern;
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode
public class ChangePasswordDto {

    private String id;
    @Pattern(regexp = "[A-Za-z0-9_*#]{6,16}" , message = "密码格式不合法")
    private String newPassword;
}
